su
<template> 
  <div>
    <el-table border :data="tableData" style="width: 100%" align="center">
        <el-table-column prop="jb" label="级别(国际/国/省/市)" align="center"> </el-table-column>
        <el-table-column prop="activityName" label="活动名称" align="center"> </el-table-column>
        <el-table-column prop="activityTitle" label="活动主题" align="center"> </el-table-column>
        <el-table-column prop="activityDate" label="活动时间" align="center"> </el-table-column>
        <el-table-column prop="address" label="活动地点" align="center"> </el-table-column>
        <el-table-column prop="projectName" label="项目名称" align="center"> </el-table-column>
        <el-table-column prop="company" label="举办单位" align="center"> </el-table-column>
        <el-table-column label="活动状态" align="center"> 
          <template slot-scope="scope">
            <div>{{projectActivityStatusFormate("projectActivity_status-"+scope.row.status)}}</div>
          </template>
        </el-table-column>
        <el-table-column fixed="right" label="操作">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="audit(scope.row)" v-if="type=='audit'"
              >审核</el-button
            >
            <el-button type="text" size="small" @click="edit(scope.row)" v-if="type=='edit'"
            >订正审核</el-button
          >
            <el-button type="text" size="small" @click="view(scope.row)" v-if="type=='view'"
              >查看</el-button
            >
          </template>
        </el-table-column>
      </el-table>
  </div>
</template>
<script>
import utils from "@/utils/utils.js";
  export default {
    name: 'listTable',
    props: {
      tableData:{
        type:Array,
      },
      dict:{
        type:Object,
      },
      type: {
      type: String,
    },
    },
    computed: {
      
    },
    data() {
      return {
        
      };
    },
    methods: {
      audit(val) {
        this.$emit('audit', val)
      },

      edit(val) {
      this.$emit("edit", val);
    },

      view(data) {
      this.$router.push({
        path: "/projectActivity/queryView",
        query: { projectActivityId: data.id },
      });
    },

      projectActivityStatusFormate(data) {
      return utils.selectDictLabel(this.dict.projectActivityStatusDict, data);
    },
    }
  }
</script>
<style scoped>
  /deep/ .el-upload {
    text-align: left;
  }
</style>


